package util;

public class Real extends Parsable<Real>{

	public static Real parseDouble(String str) {
		 return new Real(Double.parseDouble(str));
	}
	private double val;
	
	public Real() {
		val =0.0;
	}
	
	public Real(double a) {
		val = a;
	}

	public Real(int a) {
		val = a;
	}
	
	public double get() {
		return val;
	}

	@Override
	public Real parse(String str) {
		 return new Real(Double.parseDouble(str));
 
	}

	@Override
	public String toString() {
		return String.valueOf(val);
	}

}
